package com.zjj.day0425.regex;

/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/25
 */
public class DigitReplacement {
    public static void main(String[] args) {
        String originalString = "Hello12345World6789012";
        String regex = "\\d";
        String replacedString = originalString.replaceAll(regex, "#");
        System.out.println("替换前的字符串: " + originalString);
        System.out.println("替换后的字符串: " + replacedString);
    }
}